package com.pty.demo.behaviour.state;

/**
 * @author pengty
 * @date 2020/3/13
 */
public class PaidState extends OrderState {

    public PaidState(OrderStateContext orderStateContext) {
        super(orderStateContext);
    }

    @Override
    public void pay() {

    }

    @Override
    public void checkPay() {
        System.out.println("确认用户已支付");
        orderStateContext.setCurrentState(new ToBeDeliveredState(orderStateContext));
    }

    @Override
    public void deliver() {

    }

    @Override
    public void receive() {

    }
}
